//
//  HMProfileTableViewController.swift
//  WeiboZH
//
//  Created by acer on 16/10/4.
//  Copyright © 2016年 acer. All rights reserved.
//

import UIKit

class HMProfileTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.green
        addNavRightButton()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    private func addNavRightButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    //  点击事件
    func pushAction() -> Void {
        let testVc = HMTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
        
        
    }

}
